Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Conversation

@evanlouie
Copy link
Collaborator

  • When a ring is marked as isDefault: true, spk hld reconcile will now
    generate an additional IngressRoute and Middleware.
    • The IngressRoute will not have a Ring route match rule
    • The IngressRoute points to the same backend service as its ringed
      counterpart.
    • Only one ring can be marked isDefault: true -- validation is run at
      spk hld reconcile execute time, throwing an error if more than one
      isDefault.
  • Refactored IngressRoute tests
  • Added compatibility configuration for eslint and prettier.

closes microsoft/bedrock#1084

@evanlouie
Copy link
Collaborator Author

Investigating why tests are failing. Can't seem to make them fail locally.

@evanlouie evanlouie force-pushed the 1084-default-ring-routing branch from e13aeb9 to f7399d0 Compare March 20, 2020 11:55
@evanlouie evanlouie force-pushed the 1084-default-ring-routing branch from f7399d0 to 7ed612d Compare March 20, 2020 19:08
@mtarng
Copy link
Collaborator

mtarng commented Mar 20, 2020

Trying to follow the logic @evanlouie , what happens when we changed the default ring? will spk hld reconcile overwrite the existing IngressRoute definition in the hld repository?

@evanlouie
Copy link
Collaborator Author

evanlouie commented Mar 20, 2020

@mtarng yup. reconcile regenerates the IngressRoute and middlewares file every time. If a ring is changed from isDefault: true to isDefault: false, the regenerated ingressroute/middleware files will only have the ringed versions in it (as opposed to the multi docs (--- delimitted) yaml files it outputs if it is isDefault)

@evanlouie evanlouie force-pushed the 1084-default-ring-routing branch 3 times, most recently from cc2727c to a699cf1 Compare March 23, 2020 22:04
- When a ring is marked as `isDefault: true`, `spk hld reconcile` will now
  generate an additional IngressRoute and Middleware.
  - The IngressRoute will not have a `Ring` route match rule
  - The IngressRoute points to the same backend service as its ringed
    counterpart.
  - Only one ring can be marked `isDefault: true` -- validation is run at
    `spk hld reconcile` execute time, throwing an error if more than one
    `isDefault`.
- Refactored IngressRoute tests
- Added compatibility configuration for eslint and prettier.

closes microsoft/bedrock#1084
@evanlouie evanlouie force-pushed the 1084-default-ring-routing branch from a699cf1 to c321f88 Compare March 23, 2020 22:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fallback/Default routing for rings

4 participants